package com.rom.ratethehell.protocol;

import java.io.InputStream;

import android.graphics.BitmapFactory;

public class ImageUtils {
	public Dimension getImageDimensions(InputStream imageIS) {
		BitmapFactory.Options options = new BitmapFactory.Options();
		options.inJustDecodeBounds = true;
		BitmapFactory.decodeStream(imageIS, null, options);
		return new Dimension(options.outWidth,options.outHeight);
	}
}
